#ifndef _LGX_ASR
#define _LGX_ASR

#include "menu.h"
#include "led.h"
#include "bled.h"
#include "motor.h"
#include "userisp.h"
#include "joystick.h"

#define ASR_NULL							0X0000
#define ASR_WAKEUP						0XAA00
#define ASR_LED_TURNON				0XAA01
#define ASR_LED_TURNOFF				0XAA02
#define ASR_LED_BRUP					0XAA03
#define ASR_LED_BRDOWN				0XAA04
#define ASR_BLED_TURNON				0XAA05
#define ASR_BLED_TURNOFF			0XAA06
#define ASR_BLED_RED					0XAA07
#define ASR_BLED_GREEN				0XAA08
#define ASR_BLED_BULE					0XAA09
#define ASR_BLED_COLOR				0XAA0A
#define ASR_MOTOR_START				0XAA0B
#define ASR_MOTOR_STOP				0XAA0C
#define ASR_MOTOR_ACC					0XAA0D
#define ASR_MOTOR_DEC					0XAA0E
#define ASR_MCU_RESET					0XAA0F
#define ASR_MCU_ISP						0XAA10
#define	ASR_DISPLAY_HOME			0XAA11
#define	ASR_DISPLAY_ASR				0XAA12
#define	ASR_DISPLAY_JOYS			0XAA13
#define	ASR_DISPLAY_BLED			0XAA14
#define	ASR_DISPLAY_MORTOR		0XAA15
#define	ASR_DISPLAY_IMU				0XAA16
#define ASR_DISPLAY_DEBUG			0XAA17
#define	ASR_JOYS_CALI_LEFT		0XAA18
#define	ASR_JOYS_CALI_RIGHT		0XAA19
#define	ASR_JOYS_CALI_UP			0XAA1A
#define	ASR_JOYS_CALI_DOWN		0XAA1B
#define	ASR_JOYS_CALI_MID			0XAA1C

#define ASR_DEBUG_LENTH				0x20

extern uint32 *pASRcmd;
extern uint8 ASRDebugBuff[ASR_DEBUG_LENTH];

void ASRInitialize(void);

void SystickCallbackUART1(void);
void SystickCallbackASR(void);

#endif